package com.shadow.bus.main.search_code;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.shadow.bus.entity.SearchPersonCodeBean;

import java.util.List;

import busfix.tepth.com.shadow_bus.R;

/**
 * @author zhangyu
 * @date 2018/10/12
 */

public class HistoryPersonAdapter extends BaseQuickAdapter<SearchPersonCodeBean, BaseViewHolder> {

    public HistoryPersonAdapter(int layoutResId, List<SearchPersonCodeBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, SearchPersonCodeBean item) {
        helper.setText(R.id.tv_name, item.getCode() + "      " + item.getName());
        helper.addOnClickListener(R.id.layout_iv);
    }

}
